package com.example.canteen.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class OrderDTO {
    private long id;
    private String name;
    private String date;
    private PrivateRoomDTO privateRoomDTO;
    private Map<String, Integer> dishCount = new HashMap<>();
    private Map<String, Integer> setMealCount = new HashMap<>();
    private String privateRoomName;

    public String getPrivateRoomName() {
        return privateRoomName;
    }

    public void setPrivateRoomName(String privateRoomName) {
        this.privateRoomName = privateRoomName;
    }

    public Map<String, Integer> getSetMealCount() {
        return setMealCount;
    }

    public void setSetMealCount(Map<String, Integer> setMealCount) {
        this.setMealCount = setMealCount;
    }

    public Map<String, Integer> getDishCount() {
        return dishCount;
    }

    public void setDishCount(Map<String, Integer> dishCount) {
        this.dishCount = dishCount;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @JsonIgnore
    public PrivateRoomDTO getPrivateRoomDTO() {
        return privateRoomDTO;
    }

    @JsonProperty
    public void setPrivateRoomDTO(PrivateRoomDTO privateRoomDTO) {
        this.privateRoomDTO = privateRoomDTO;
    }

}
